//
//  EntityUtil.h
//  LOU
//
//  Created by iMacOne on 15/11/11.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface EntityUtil : NSObject

// utf8编码过的json字符串转map, 可用在和网页交互
+ (NSDictionary*)utf8Map:(NSString*)str;

#pragma mark 对象转map
+ (NSMutableDictionary*)objToMap:(id)obj;

#pragma mark map转对象
+ (id)mapToObj:(NSMutableDictionary*)map;

// 拼接获得上传的参数
+ (NSString*)getUploadParam:(int)cut isUpload:(BOOL)isUpload;

// 对象转json
+ (NSString*)toJson:(id)obj;

// 字典或数组转json
+ (NSString*)mapArrayToJson:(id)obj;

// json转字典或数组
+ (id)jsonToMapArray:(NSString*)json;

#pragma mark 根据key和value创建map
+ (NSMutableDictionary*)createMap:(NSArray*)keys values:(NSArray*)values;




@end
